#ifndef DEVICE_VERTEX_DECL_DX9_H
#define DEVICE_VERTEX_DECL_DX9_H

#include "../inc/buffer.h"
#include "D3DHeader.h"

namespace Graphic
{
	class VertexDeclDX9  : public VertexDecl
	{
	public:
		VertexDeclDX9(D3D9VertexDecl* pDecl, int size);
		virtual ~VertexDeclDX9(){}
		virtual int	GetSize();

	public:
		virtual bool IsValid();
		virtual int	 GetHandle();
		virtual void Release();
	private:
		D3D9VertexDecl* m_pDecl;
		int	m_nSize;
		bool m_bIsValid;
	};
}

#endif

